package com.vcourse.service.user.controller.admin;

import com.vcourse.commons.result.R;
import com.vcourse.service.user.service.MemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * 后台管理系统用户接口
 * @author Zengsh123
 * @date 2020-05-27 20:34
 */
@RestController
@RequestMapping("/admin/ucenter/user")
public class AdminMemberController {
    @Resource
    private MemberService memberService;

    @ApiOperation("统计某天用户注册人数")
    @GetMapping("count-registry-num/{day}")
    public R countRegistryNum(@ApiParam("日期") @PathVariable String day) {
        return R.ok().data(memberService.getCountRegistryNum(day));
    }

}
